package com.killer.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.killer.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 地址表
 * </p>
 *
 * @author killer
 * @since 2021-11-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_address")
@ApiModel(value="Address对象", description="地址表")
public class Address extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "省")
    @TableField("province_id")
    private Long provinceId;

    @ApiModelProperty(value = "市")
    @TableField("city_id")
    private Long cityId;

    @ApiModelProperty(value = "县/区")
    @TableField("area_id")
    private Long areaId;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "联系人")
    @TableField("contact")
    private String contact;

    @ApiModelProperty(value = "是否是默认 1默认 0否")
    @TableField("is_default")
    private Boolean isDefault;

    @ApiModelProperty(value = "别名")
    @TableField("alias")
    private String alias;


}
